const express = require("express")

const app = express()

app.get("/index/:id", (req, res) => {
    // res.setHeader("Access-Control-Allow-Origin ", "*")
    console.log(req.query)
    console.log(req.params)
    res.send(req.query)
})

app.post("/about", (req, res) => {
    res.send("about post")
})

app.listen(8080, () => {
    console.log("服务器已经启动")
})